package com.ruoyi.finance.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.finance.domain.KltDeliverRecord;
import com.ruoyi.finance.domain.KltPurchaseBatch;
import com.ruoyi.finance.domain.KltStock;
import com.ruoyi.finance.domain.VO.StockVO;

import java.util.List;

/**
 * (KltStock)表服务接口
 *
 * @author makejava
 * @since 2024-12-19 12:18:03
 */
public interface KltStockService extends IService<KltStock> {
    Integer getMaxId();

    List<KltStock> getAllKltPurchaseBatch(QueryWrapper<KltStock> kltStockQueryWrapper);

    List<StockVO> getStockByOrderIdAndDetail(Integer salesOrderid);

    List<StockVO> getStockByOrderIdAndDetailArrive(Integer salesOrderid);

    Boolean DeductInventoryShippingRecords(KltDeliverRecord kltDeliverRecord);

    Boolean UndeductInventoryShippingRecords(KltDeliverRecord kltDeliverRecord);
}

